package com.china08.yxyapi.service.manage.tec.teaching.lecture;

import java.util.List;

import org.elasticsearch.index.query.BoolQueryBuilder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.china08.yxyapi.entity.es.ElasticYxyYxyQuesResource;

public interface LectureQuestionService {

    /**
     * 基础查询
     * 
     * @param boolQueryBuilder
     * @param level
     * @param type
     * @param use
     * @return
     */
    public BoolQueryBuilder get(BoolQueryBuilder boolQueryBuilder, String level, String type, String questionType);

    /**
     * 根据id查询
     * 
     * @param subject
     * @param quesId
     * @return
     */
    ElasticYxyYxyQuesResource findByEsQuesId(String quesId);

    /**
     * 按目录查询
     * 
     * @param bookcontent
     * @param level
     * @param type
     * @param use
     * @param pageable
     * @return
     */
    public Page<ElasticYxyYxyQuesResource> questionFindByBookcontentAndLevelAndTypeAndQuestionType(String bookcontent,
            String bookId, String difficultyLevel, String type, String questionType, Pageable pageable);

    public Page<ElasticYxyYxyQuesResource> questionFindByBookcontentAndLevelAndTypeAndQuestionTypeNotIn(
            String bookcontent, String bookId, String difficultyLevel, String type, List<String> quesTypeList,
            Pageable pageable);

    public BoolQueryBuilder getJieDa(BoolQueryBuilder boolQueryBuilder, String level, String type,
            String... questionType);

}
